﻿@{
    ViewBag.Title = "WatchMan";
}
<!-- BEGIN TIMELINE -->
<div class="timelineLight tl">
@foreach (var item in (IEnumerable<WmWebSystem.Models.Slider>)ViewData["Sliders"])
{
    <div class="item" data-id="@item.AddTime.ToString("yyyy/MM/dd")" data-description="Lorem ipsum dolor sit amet, consectetur adipiscing elit...">
        <a class="image_rollover_bottom con_borderImage" data-description="ZOOM IN" href="@Url.Content(item.ImgUrl)"
            rel="lightbox[timeline]">
            <img src="@Url.Content(item.ImgUrl)" alt="" height="125px" width="200px" />
        </a>
        <h2>@item.AddTime.ToString("yyyy-MM-dd")</h2>
        <span> @(new MvcHtmlString(item.Description))</span>
        <div class="read_more" data-id="@item.AddTime.ToString("yyyy/MM/dd")">详细</div>
    </div>
    <div class="item_open" data-id="@item.AddTime.ToString("yyyy/MM/dd")">
        <div class="timeline_open_content">
            <h2 class="no-marg-top"><a href="@item.LinkTo">@item.Title</a></h2>
              发布者：<b>@item.Author</b> | 集资额：<b>@item.TargetValue</b> | 项目类型：<b>@Enum.GetName(typeof(WmWebSystem.Models.Enum.ProjectType), Convert.ToInt32(item.Type)) </b><br />
              <hr />
              @(new MvcHtmlString(item.Content))
        </div>
    </div>
}
</div>
<!-- /END TIMELINE -->
<!-- BEGIN middle_silver_background with icons  -->
<div class="middle_silver_background">
    <div class="container">
        <ul id="sti-menu" class="sti-menu">
            <li data-hovercolor="#ffffff"><a href="@Url.Action("OurTeam","Home")">
                <h2 data-type="mText" class="sti-item">
                    守望团队</h2>
                <h3 data-type="sText" class="sti-item">
                    About Team</h3>
                <span data-type="icon" class="sti-icon sti-icon-one sti-item"></span></a></li>
            <li data-hovercolor="#ffffff"><a href="@Url.Action("Success","Project")">
                <h2 data-type="mText" class="sti-item">
                    成功项目</h2>
                <h3 data-type="sText" class="sti-item">
                    Our Accomplishments</h3>
                <span data-type="icon" class="sti-icon sti-icon-two sti-item"></span></a></li>
            <li data-hovercolor="#ffffff"><a href="@Url.Action("OurPartner","Home")">
                <h2 data-type="mText" class="sti-item">
                    交流合作</h2>
                <h3 data-type="sText" class="sti-item">
                    Cooperation</h3>
                <span data-type="icon" class="sti-icon sti-icon-three sti-item"></span></a></li>
            <li data-hovercolor="#ffffff"><a href="@Url.Action("Flow", "Home")">
                <h2 data-type="mText" class="sti-item">
                    流程介绍</h2>
                <h3 data-type="sText" class="sti-item">
                    Working Process</h3>
                <span data-type="icon" class="sti-icon sti-icon-four sti-item"></span></a></li>
        </ul>
        <div class="clear">
        </div>
    </div>
</div>
<!-- /END middle_silver_background with icons -->
<!-- BEGIN middle part -->
<section id="content">


<!-- first part -->
<h3>The Wanted</h3>
<div class="con_border"></div>
@{
    int t1 = 0;
    }
@foreach (var item in (IEnumerable<WmWebSystem.Models.Project>)ViewData["ProjectList"])
{
    t1++;
    if (t1 % 3 != 0)
    {
        <div class="column column-1-4  marg-top text-center">
	        <a class="image_rollover_bottom marg-bott" data-description="READ MORE" href="@Url.Action("Details", "Project", new { id = item.ProjectId })">
		        <img src="@Url.Content(item.Logo)" alt="" height="280px" width="420px"  />
	        </a>
	        <b class="colorBlack">@item.ProjectName</b><br />
	        发布者：@item.Author <br />
            项目类型：@Enum.GetName(typeof(WmWebSystem.Models.Enum.ProjectType),Convert.ToInt32(item.Type))<br />
            发布时间：@item.AddTime.ToString("yyyy/mm/dd") <br />
        </div>
    }
    else
    {

        <div class="column column-1-4 column-last  marg-top text-center">
	        <a class="image_rollover_bottom marg-bott" data-description="READ MORE" href="@Url.Action("Details", "Project", new { id = item.ProjectId })">
		        <img src="@Url.Content(item.Logo)" alt="" height="280px" width="420px" />
	        </a>
	        <b class="colorBlack">@item.ProjectName</b><br />
	        发布者：@item.Author <br />
            项目类型：@Enum.GetName(typeof(WmWebSystem.Models.Enum.ProjectType),Convert.ToInt32(item.Type))<br />
            发布时间：@item.AddTime.ToString("yyyy/mm/dd") <br />
        </div>
    
    }
}
<div class="clear"></div>
<!-- /frst part -->

</section>
<!-- /END middle part -->
